package com.ldp.designpatterns.study.mediator.demo1;

import com.ldp.designpatterns.study.mediator.demo1.User.User;

/**
 * @ClassName MediatorTest1
 * @Description TODO
 * @Author lindipei
 * @Date 2023/10/18 15:21
 */
public class MediatorTest1 {
    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John!");
        john.sendMessage("Hello! Robert!");
    }
}
